import request from '@/utils/request'

export interface SystemLoadVO {
  cpuUsage: number
  memoryUsage: number
  totalMemory: number
  usedMemory: number
  freeMemory: number
  diskUsage: number
  totalDisk: number
  usedDisk: number
  freeDisk: number
  threadCount: number
  status: string
  message: string
}

// 获取系统负载信息
export function getSystemLoad() {
  return request<SystemLoadVO>({
    url: '/system/monitor/load',
    method: 'get'
  })
}

// 获取系统状态
export function getSystemStatus() {
  return request<string>({
    url: '/system/monitor/status',
    method: 'get'
  })
} 